@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered">
                        <tr>
                            <td colspan="6">订单信息</td>
                        </tr>
                        <tr>
                            <td><b>订单号：</b>${order.orderno}</td>
                            <td><b>姓名：</b>${order.fullname}</td>
                            <td><b>标的：</b>${order.stockCode}</td>
                            <td><b>产品种类：</b>${order.productCategoryName}</td>
                        </tr>

                        <tr>
                            <td><b>期权类型：</b>${order.productTypeName}</td>
                            <td><b>期权期限：</b>${order.productTimeLimitName}</td>
                            <td><b>交易方式：</b>${order.priceTypeName}</td>
                            <td><b>涨跌：</b>${order.iscallName}</td>
                        </tr>

                        <tr>
                            <td><b>创建时间：</b>${order.createTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td><b>行权价：</b>${order.yesPrice}</td>
                            <td><b>询价数量：</b>${order.inquiryNumber}</td>
                            <td><b>询价时间：</b>${order.inquiryTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>

                        </tr>

                        <tr>
                            <td><b>参考单价：</b>${order.inquiryRefPrice}</td>
                            <td><b>订单报价单价：</b>${order.orderPrice}</td>
                            <td><b>报价时间：</b>${order.offerTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td><b>订单状态：</b>${order.statusName}</td>
                        </tr>

                        <tr>
                            <td><b>订单差价单价：</b>${order.profitsAmount}</td>
                            <td><b>订单手续费单价：</b>${order.buyPoundage}</td>
                            <td><b>买入申请时间：</b>${order.buyApplyTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td><b>买入受理时间：</b>${order.buyAcceptTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                        </tr>

                        <tr>
                            <td><b>买入数量：</b>${order.buyConfirmNumber}</td>
                            <td><b>持仓数量：</b>${order.positionNumber}</td>
                            <td><b>买入确认时间：</b>${order.buyConfirmTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td><b>到期时间：</b>${order.buyEndTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered">
                        <tr>
                            <td colspan="4">认购详情</td>
                        </tr>
                        <tr>
                            <th>券商</th>
                            <th>报价数量</th>
                            <th>买入数量</th>
                            <th>报价</th>
                        </tr>
                        @for(detail in orderDetails){
                        <tr>
                            <td>${detail.brokernoName}</td>
                            <td>${detail.offerNumber}</td>
                            <td>${detail.buyNumber}</td>
                            <td>${detail.price}</td>
                        </tr>
                        @}

                    </table>
                </div>
            </div>


            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered">
                        <tr>
                            <td colspan="6">平仓详情</td>
                        </tr>
                        <tr>
                            <th>序号</th>
                            <th>平仓数量</th>
                            <th>总收益</th>
                            <th>平仓申请时间</th>
                            <th>平仓受理时间</th>
                            <th>平仓成交时间</th>
                        </tr>


                        @for(sell in sells){
                        <tr>
                            <td>${sell.id}</td>
                            <td>${sell.sellNumber}</td>
                            <td>${sell.earnings}</td>
                            <td>${sell.applyTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td>${sell.acceptTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                            <td>${sell.confirmTime,dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
                        </tr>
                            @for(sellDetail in sell.sellDetailName){
                            <tr>
                                <td></td>
                                <td>${sellDetail.brokernoName}</td>
                                <td>${sellDetail.earnings}</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                            @}
                        @}

                    </table>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="返回" id="cancel" icon="fa-reply" clickFun="window.history.back();"/>
                </div>
            </div>

        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/stock/stockOrder/stockOrder_info.js"></script>
@}
